{extend name="$_tpl_public_layout_danceadmin"/}


{block name="breadcrumb"}
<ol class="breadcrumb">
	<li class="breadcrumb-item"><a href="{:url('admin/index/index')}">{:config('system.site_title')}</a></li>
	<li class="breadcrumb-item"><a href="{:url('admin/weixinAccount/index')}">{$weixinAccountInfo['wxname']}</a></li>
	<li class="breadcrumb-item"><a href="{:url('weixin_manage/user/index', ['wid'=>$wid])}">{$sideName}</a></li>
</ol>
{/block}


{block name="pageheader"}
{$sideName}
{/block}


{block name="content"}
{include file="index:nav" /}

<!-- 搜索 -->
<div class="card mb-3">
	<div class="card-body">
		<form method="get" action="" class="J_ajaxForm">
			<div class="form-row mb-1">
				<div class="col-md-3">
					<div class="input-group">
						<div class="input-group-prepend">
							<div class="input-group-text">id</div>
						</div>
						<input type="text" name="id" value="{$id}" class="form-control" />
					</div>
				</div>
				<div class="col-md-3">
					<div class="input-group">
						<div class="input-group-prepend">
							<div class="input-group-text">昵称</div>
						</div>
						<input type="text" name="nickname" value="{$nickname}" class="form-control" />
					</div>
				</div>
				<div class="col-md-3">
					<div class="input-group">
						<div class="input-group-prepend">
							<div class="input-group-text">openid</div>
						</div>
						<input type="text" name="openid" value="{$openid}" class="form-control" />
					</div>
				</div>
				<div class="col-md-3">
					<div class="input-group">
						<div class="input-group-prepend">
							<div class="input-group-text">unionid</div>
						</div>
						<input type="text" name="unionid" value="{$unionid}" class="form-control" />
					</div>
				</div>
			</div>
			<div>
				<button type="submit" class="btn btn-primary btn-sm J_excel" data-action="{:url('weixin_manage/user/index', ['wid'=>$wid])}">搜索</button>
				<button type="submit" class="btn btn-danger btn-sm J_excel" data-action="{:url('weixin_manage/user/doExcel', ['wid'=>$wid])}">导出</button>
				<button type="submit" class="btn btn-info btn-sm J_excel" data-action="{:url('weixin_manage/user/index', ['wid'=>$wid, 'no_unionid'=>1])}">筛选unionid为空</button>
			</div>
		</form>
	</div>
</div>
<!-- 搜索 END -->

<div class="card">
	<div class="card-body">
		<div class="dataTable-toolbar">
			筛选总记录：{$count}
		</div>
		<!-- 列表 -->
		<form action="" method="post" class="J_ajaxForm">
			<table class="table table-striped table-bordered table-hover dataTable-table">
				<thead>
					<tr>
						<td width="60">序号</td>
						<td width="100">昵称</td>
						<td width="120">openid</td>
						<td width="120">unionid</td>
						<td width="60">头像</td>
						<td width="120">关注时间</td>
						<td width="120">创建时间</td>
						<td width="120">最后登录</td>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="vo"}
					<tr>
						<td>{$vo['id']}</td>
						<td>{$vo['nickname']}</td>
						<td>{$vo['openid']}</td>
						<td>{$vo['unionid']}</td>
						<td><img src="{$vo['headimgurl']}" width="60" /></td>
						<td>{$vo['subscribe_time_show']}</td>
						<td>{$vo['create_time_show']}</td>
						<td>{$vo['last_login_time_show']}</td>
					</tr>
					{/volist}
				</tbody>
			</table>
		</form>
		<div class="dataTable-pages">{$pageShow|raw}</div>
		<!-- 列表 END -->
	</div>
</div>
{/block}